package com.guandeng.mall.service;

import com.guandeng.mall.model.UmsAdmin;
import com.guandeng.mall.model.UmsResource;
import org.springframework.security.core.userdetails.UserDetails;

import java.util.List;

public interface UmsAdminService {
    String login(String username, String password);

    UserDetails loadUserByUsername(String username);

    UmsAdmin getAdminByUsername(String username);

    /**
     * 根据用户id获取用户
     */
    UmsAdmin getItem(Long id);

    /**
     * 获取指定用户的可访问资源
     */
    List<UmsResource> getResourceList(Long adminId);
//    void delResourceList(Long adminId);
//    void delResourceListByRole(Long roleId);
}
